package com.cyou.nad.utils;

import java.io.InputStream;

import org.apache.commons.lang.StringUtils;

/**
 * 
 * @author wl
 *
 */
public class ResourceHelper {
	
	public static InputStream getResourcesByClsPath(String classPath) {
		if(StringUtils.isBlank(classPath)) {
			return null;
		}

		ClassLoader loader = Thread.currentThread().getContextClassLoader();
		
		return loader.getResourceAsStream(classPath);
	}

}
